
namespace JTZY.Model.Goods
{
    /// <summary>
    /// 货品表
    /// </summary>
    [SugarTable("corecmsproducts")]
    public class Corecmsproducts
    {
        /// <summary>
        /// 是否默认货品 
        /// </summary>
        public bool IsDefalut { get; set; }

        /// <summary>
        /// 规格图片 
        /// </summary>
        public string Images { get; set; }

        /// <summary>
        /// 是否删除 
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// 积分可抵扣金额 
        /// </summary>
        public decimal PointsDeduction { get; set; }

        /// <summary>
        /// 赠送积分 
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 商品名称 
        /// </summary>
        public string SkuName { get; set; }

        /// <summary>
        /// 货品序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 商品序列 
        /// </summary>
        public int GoodsId { get; set; }

        /// <summary>
        /// 商品条码 
        /// </summary>
        public string Barcode { get; set; }

        /// <summary>
        /// 货品编码 
        /// </summary>
        public string Sn { get; set; }

        /// <summary>
        /// 货品价格 
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 货品成本价 
        /// </summary>
        public decimal Costprice { get; set; }

        /// <summary>
        /// 货品市场价 
        /// </summary>
        public decimal Mktprice { get; set; }

        /// <summary>
        /// 是否上架 
        /// </summary>
        public bool Marketable { get; set; }

        /// <summary>
        /// 重量(千克) 
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 库存 
        /// </summary>
        public int Stock { get; set; }

        /// <summary>
        /// 冻结库存 
        /// </summary>
        public int FreezeStock { get; set; }

        /// <summary>
        /// 规格值 
        /// </summary>
        public string SpesDesc { get; set; }

        #region 关联字段
        [SugarColumn(IsIgnore=true)]
        public string Image { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string SkuImage { get; set; }

        #endregion
    }
}